<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class BusinessChapter extends Validate
{
    protected $rule = [
    ];

    protected $message = ['chapter_id.require' => '为必填项','chapter_id.number' => '需为数字',
    ];

    /**
     * 添加
     */
    public function sceneAdd()
    {
        return $this->only(['chapter_id',]);
    }

    /**
     * 编辑
     */
    public function sceneEdit()
    {
        return $this->only(['chapter_id',]);
    }
}
